package think.in.spring.bean.factory.impl;

import think.in.spring.ioc.overview.domain.User;

import javax.annotation.PostConstruct;

public class DefaultUserFactory{
    /**
     * 工厂方法
     * @return
     */
    public User createUser() {
        User u = new User();
        u.setName("Bean工厂方法");
        return u;
    }

    public static Integer createInt() {
        return 1;
    }

    public static User createUser1() {
        User u = new User();
        u.setName("静态工厂方法");
        return u;
    }
}
